export const tableItem = [
  {
    prop: 'workOrderId',
    label: '编号',
    hide: true,
  },
  {
    prop: 'name',
    label: '工单名称',
    width: '300',
  },
  {
    prop: 'typeName',
    label: '工单类型',
    width: '180',
  },
  {
    prop: 'projectName',
    label: '项目名称',
    width: '200',
  },
  {
    prop: 'environment',
    label: '环境',
    width: '75',
    slotName: 'environmentSlot',
  },

  {
    prop: 'productName',
    label: '产品',
    width: '120',
  },
  {
    prop: 'supportMethod',
    label: '方式',
    slotName: 'supportMethodSlot',
    width: '70',
  },
  {
    prop: 'orderStatus',
    label: '状态',
    slotName: 'orderStatusSlot',
    width: '75',
  },
  {
    label: '支持日期',
    slotName: 'supportDateSlot',
    width: '200',
  },
  {
    label: '支持人员',
    slotName: 'supportsSlot',
    width: '200',
  },
  {
    prop: 'marketerName',
    label: '销售',
    width: '100',
  },
  {
    prop: 'todo',
    label: '操作',
    width: '260',
    fixed: !window.isSmallScreen ? 'right' : false,
    slotName: 'todo',
    showOverflowTooltip: false,
  },
]
export default () => {
  return {
    tableItem,
    elTableConfig: {
      tooltipOptions: {
        popperClass: 'lmw_popper',
        effect: 'light',
      },
      rowKey: 'workOrderId',
    },
    showIndex: false,
    showChoose: true,
    pagination: true,
    // border: false,
  }
}
